package com.yao.item;

import java.util.concurrent.Callable;
import java.util.concurrent.FutureTask;

public class sss {



    public static void main(String[] args) {

//       startThread(new Runnable() {
//           @Override
//           public void run() {
//               System.out.println(Thread.currentThread().getName()+"线程启动了");
//           }
//       });
//       startThread( ()-> System.out.println(Thread.currentThread().getName()+"线程启动了")
//       );

        String s1=null;
        String s2="null";
        System.out.println(s1);
        System.out.println(s2);
        System.out.println(s2.equals(s1));
        System.out.println( s1== s2);

    }

    private static void startThread(Runnable runnable) {
        new Thread(runnable).start();
    }
}
//class mythread implements Callable<String>{
//
//    @Override
//    public String call() throws Exception {
//        for (int i=0;i<100; i++){
//            System.out.println("----线程执行--: "+i);
//        }
//        return "线程执行成功";
//    }
//}
